/* 
 * File:   FractalWindow.cpp
 * Author: amouro-m
 * 
 * Created on 22 mai 2010, 20:34
 */

#include "FractalWindow.h"
#include "Frame.h"

#include <QHBoxLayout>
#include <QDockWidget>

FractalWindow::FractalWindow(unsigned int width, unsigned int height, QMainWindow* parent, Qt::WFlags fl):
QMainWindow(parent, fl)
{
    _frame = new Frame(width, height, this);
    
    //Lookfeel
    setMinimumSize(_frame->width()+_width_space, _frame->height()+_height_space);
    setMaximumSize(_frame->width()+_width_space, _frame->height()+_height_space);
    resize(_frame->width()+_width_space, _frame->height()+_height_space);

    //Menu
    _menu = new Menu(_frame, this);
    setMenuBar(_menu);

    this->setCentralWidget(_frame);
}

FractalWindow::~FractalWindow()
{
    delete _frame;
    delete _menu;
}